package co.za.itweb.itwebpro;

import java.util.ArrayList;
import java.util.List;

public class ViewHolder {
		
		public  List<ViewItems> _viewitem;
		private int _itemcount = 0;
		
		public ViewHolder()
		{
			_viewitem = new ArrayList<ViewItems>(0); 
		}
		
		
		int addItem(ViewItems item)
		{
			_viewitem.add(item);
			_itemcount++;
			return _itemcount;
		}
		ViewItems getItem(int location)
		{
			return _viewitem.get(location);
		}
		List<ViewItems> getAllItems()
		{
			return _viewitem;
		}
		int getItemCount()
		{
			return _itemcount;
		}

	}


